package org.dgt.model.core;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "USERS")
public class User{
	@Id
	@Column(name = "USERNAME", columnDefinition="varchar(50) not null")
	private String username;
	
	@Column(name="PASSWORD", columnDefinition="varchar(50) not null")
	private String password;
	
	@Column(name="ENABLED", columnDefinition="boolean not null")
	private boolean enabled;
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	} 
}
